package com.android.tea.util;

import java.util.Comparator;

import com.android.tea.entity.TeaFriend;

public class PinyinComparator implements Comparator<TeaFriend> {

	@Override
	public int compare(TeaFriend o1, TeaFriend o2) {
		String str1 = PingYinUtil.getPingYin((String) o1.getTitle());
		String str2 = PingYinUtil.getPingYin((String) o2.getTitle());
		return str1.compareTo(str2);
	}

}
